package com.xgry.bpm.api.base.role.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "roleId", type = IdType.AUTO)
    private Integer roleId;

    @TableField("roleCode")
    private String roleCode;

    @TableField("roleDescribe")
    private String roleDescribe;

    @TableField("roleName")
    private String roleName;

    @TableField("createDate")
    private LocalDate createDate;

    @TableField("updateDate")
    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

}
